import java.util.Scanner;
/**
 * @author Administrator
 */
public class ZY03 {
        public static void main(String[] args) {
            System.out.println("请输入一个整数:");
            Scanner SX=new Scanner(System.in);
            int x=SX.nextInt();
            int fanily=0;
            while(x>0)
            {
                int n=x%10;
                fanily=fanily*10+n;
                x=x/10;
            }
            System.out.println(fanily);
        }
    }


